package com.tianqu.tms.dao;

import java.util.List;

import com.tianqu.tms.core.exception.TmsDaoException;
import com.tianqu.tms.dto.UserRoleDto;

public interface UserRoleDao {

	
	public List<UserRoleDto> getRoleInfoByUcId(int ucId) throws TmsDaoException;
	
	@SuppressWarnings("unchecked")
	public List getAllRole()throws TmsDaoException;
	
	public int getRole(int ucId)throws TmsDaoException;
	
	public void insert(UserRoleDto dto)throws TmsDaoException;
	
	public UserRoleDto findRoleByrole(int role)throws TmsDaoException;
	
	public void deleteRole(int role)throws TmsDaoException;
	
	public int getRoleByName(String roleName)throws TmsDaoException;
}
